package cn.ljl.org.mapper;


import cn.ljl.basic.mapper.BaseMapper;
import cn.ljl.org.domain.Shop;
import cn.ljl.org.domain.SopDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Tom
 * @since 2023-02-04
 */
public interface ShopMapper extends BaseMapper<Shop> {

    Shop findByNameAndAddress(Shop shop);
    //多参数操作：1.注解@Param 2.#{} 3.Map
    void updateState(@Param("state")Integer state,@Param("shopId")Long shopId);

    List<SopDto> echarts();
}
